package com.baiyi.cloud.platform.client.controller;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestController {
	
	@Resource
	private RedisTemplate< String, Object> redisTemplate ;
	
	 

	@GetMapping("/test111")
	public String hello() {
		return "hello";
	}

	 
	@Value("${permit.http_urls:null}")  
	private String urls; 
	
	
	@Value("${permit.oauth_urls:null}")  
	private String auth; 
	
	@GetMapping("/mytest1111")
	public String mytest1111() {
		System.out.println("urls:" + urls + " ------,\n" + "auth:" + auth);
		return "urls:" + urls + " ------,\n" + "auth:" + auth;
	}
}
